
import urllib

'''
    there area some code examples : https://docs.python.org/2/library/urllib.html
'''

# d = urllib.urlopen("http://www.csdn.net/")
d = urllib.urlopen("http://www.baidu.com")

print d.headers
print d.read()
# meta = d.info()
# print meta.getheaders("Content-Length")
